package com.zhang.sh.service.impl;


import com.zhang.sh.mapper.UserMapper;
import com.zhang.sh.pojo.User;
import com.zhang.sh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author tps
 * @since 2021-01-02
 */
@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper userMapper;

    public User queryById(String username) {
        return userMapper.findById(username);
    }
}
